package com.Prot2;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import com.Prot2.R;

public class MainActivity extends Activity {
	
	private static final String TAG = "MainActivity";
	private Button buttonLoggerFile, buttonLoggerContinuous, buttonLoggerMyBalance;
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_activity);
		
		Globals.init();
		
		buttonLoggerFile = (Button) findViewById(R.id.button_LoggerFile);
		buttonLoggerFile.setOnClickListener(new OnClickListener(){
			public void onClick(View v){
				v.getContext().startActivity(new Intent(v.getContext(),LoggerFileUI.class));
			}
		});
		
		buttonLoggerContinuous = (Button) findViewById(R.id.button_LoggerContinuous);		
		buttonLoggerContinuous.setOnClickListener(new OnClickListener(){
			public void onClick(View v){
				v.getContext().startActivity(new Intent(v.getContext(),LoggerContinuousUI.class));
			}
		});
		
		buttonLoggerMyBalance = (Button) findViewById(R.id.button_MyBalance);		
		buttonLoggerMyBalance.setOnClickListener(new OnClickListener(){
			public void onClick(View v){
				v.getContext().startActivity(new Intent(v.getContext(),BalanceUI.class));
			}
		});
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
